

<script type="text/javascript" src="__PUBLIC__/Js/jquery.artDialog.js?skin=default"></script>
    <load href="__PUBLIC__/Js/iframeTools.js"/>
    <load href="__PUBLIC__/Js/my.js"/>
    <load href="__PUBLIC__/Js/swfupload.js"/>  
 	<script src="__PUBLIC__/Js/jquery.validate.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/MyDate/WdatePicker.js"></script>
    <script type="text/javascript">
	
var APP	 =	 '__APP__';
var ROOT =	 '__ROOT__';
var PUBLIC = '__PUBLIC__';
</script>

<script>
			KindEditor.ready(function(K) {
				var editor = K.editor({
					 uploadJson : "index.php?g=User&m=Upload&a=index",//图片上传后的处理地址
                    //fileManagerJson : 'Public/js/kindeditor/php/file_manager_json.php',
					allowFileManager : true
				});
				//上传首页推荐图
				K('#up_tuijian').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							showRemote : false,
							imageUrl : K('#thumb').val(),
							clickFn : function(url, title, width, height, border, align) {
								K('#thumb').val(url);
								 document.getElementById("thumb_pic").src=url;
								
								editor.hideDialog();
							}
						});
					});
				});
				
				//上传设计图
				K('#up_sheji').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							showRemote : false,
							clickFn : function(url, title, width, height, border, align) {
								var div = K('#pics_images');
								
								div.append('<input class="input-text" type="hidden" value="'+url+'" name="thumb_list" size="50">');
								document.getElementById("shejitu").src=url;
								editor.hideDialog();
							}
						});
					});
				});
				
				
				//批量上传设计图
				K('#J_selectImage').click(function() {
					editor.loadPlugin('multiimage', function() {
						editor.plugin.multiImageDialog({
							clickFn : function(urlList) {
								var div = K('#pics_images');
								
								K.each(urlList, function(i, data) {
									div.append('<input  name="pics[]"class="input-text" type="hidden" value="'+data.url+'" name="pics[]" size="50">');
								});
								editor.hideDialog();
							}
						});
					});
				});
			});
		</script>
<form method='post'  id="myform2" action="{:URL('User-Designer/save')}">
                 <input type="hidden" name="id"  value="{$list.id}"/>
<div class="wind_content1R">
      <span class="wind_content1Rspan">上传设计作品</span>
      <ul class="wind_UPL1" style="float:left;">
        <li><span class="wind_UPspans1"><span style="color:red;">*</span>&nbsp;标  题：</span>
            <dd><input type="text" name="title"   value="{$list['title']}"  validate=" required:true,maxlength:10"/></dd>
        </li>
        <li><span class="wind_UPspans1"><span style="color:red;">*</span>&nbsp;描  述：</span>
           <dd><input type="text" name="describe"  value="{$list.describe}" validate=" required:true,maxlength:30" /></dd>
        </li>
        <li><span class="wind_UPspans1"><span style="color:red;">*</span>&nbsp;类  型：</span>
           <dd><select name="itemType" id="name3" validate="required:true">
                    <option value="">请选择</option>
                        <YP:list name="Label" where="genre=17" id="r" limit="50">
                             <?php $seled = $list['itemType'] == $r['id'] ? 'selected="selected"' : '';?>
                    <option value="{$r['id']}" {$seled}>{$r['title']}</option>
                        </YP:list>
                </select>
           </dd>
        </li>
        <li><span class="wind_UPspans1"><span style="color:red;"></span>&nbsp;造  价：</span>
            <dd><input type="text" style="width: 200px" name="budget"  value="{$list.budget}" validate=" number:true,maxlength:3 "/>万元</dd>
        </li>
        <li><span class="wind_UPspans1"><span style="color:red;">*</span>&nbsp;风  格：</span>
            <dd><select name="style" id="name4" validate="required:true">
                    <option value="">请选择</option>
                        <YP:list name="Label" where="genre=21" id="r" limit="50">
                             <?php $seled = $list['style'] == $r['id'] ? 'selected="selected"' : '';?>
                    <option value="{$r['id']}" {$seled}>{$r['title']}</option>
                        </YP:list>
                 </select>
            </dd>
        </li>
        <li><span class="wind_UPspans1"><span style="color:red;">*</span>&nbsp;面  积：</span>
            <dd><input  style="width: 200px" type="text" name="itemArea"  value="{$list.itemArea}" validate="required:true,number:true "/>㎡</dd>
        </li>
        <li><span class="wind_UPspans1">&nbsp;设计理念：</span>
           <textarea class="wind_textar2" name="content" >{$list.content}</textarea>
        </li>
      </ul>
      <div class="wind_UPsubmit" style="width:510px;height:auto;float:right;margin-top:25px;" >
        <div style="width:100%;height:auto;">
          <div class="wind_UPsubmits1"><img id="thumb_pic" class="wind_UPsubmits1" src="{$list.pic}" /></div>
          <ul class="wind_UPsubmits2">
          <input type="hidden" id="thumb"  name="pic" value="{$list.pic}" class="input-text" />
           <li><a href="javascript:"><span id="up_tuijian" class="wind_UPsubmits3">上传首页推荐图</a></span></li>
           <li>（建议尺寸为367*220）</li>
          </ul>
          <div style="clear:both;"></div>
        </div>
        <div style="width:100%;height:auto;margin-top: 10px;">
          <div class="wind_UPsubmits1"><img id="shejitu" class="wind_UPsubmits1" src="{$list.thumb_list}"/></div>
          <ul class="wind_UPsubmits2">
            <li><span id="up_sheji" class="wind_UPsubmits3">上传缩略图</span></li>
            <li>（建议尺寸为358*168）</li>
            <input type="hidden" id="thumb"  name="thumb_list" value="{$list.thumb_list}" class="input-text" />
            <div id="pics_images" class="imagesList" style=" display:none">
             <volist name="pics" id="v">
             <input class="input-text" id="pl_pics" type="hidden" value="{$v}" name="pics[]" size="50">
             </volist>
            </div>
            
            
            <div id="J_imageView"></div>
	      </ul>
          <div style="clear:both;"></div>
        </div>
        <li style="width:150px; text-align:center; margin-left:100px; margin-top:20px; " ><span  class="wind_UPsubmits3"><a href="javascript:" id="J_selectImage" style="color:#FFF; font-weight:bold">批量上传详细图片</a></span></li>
        <p style="margin-top:20px;"><span style="color:red;">* 请勿上传</span><br/>
              有广告性质的水印低质量的图片
        </p>
      </div>
      <div style="clear:both;"></div>
      <ul style="margin-left:40px;">
       <?php $seled = $list['choice'] == 1 ? 'checked="checked"' : '';?>
        <li><span style="color:red;">*</span> <span style="font-weight:bold;font-size:14px;">原创承诺：</span><dd><input name="choice" type="checkbox" class="wind_check3" {$seled} value="1" validate=" required:true">    我保证所上传的作品是由我自己创作，并非剽窃抄袭他人的作品，拥有自主的知识产权，如有侵权，我将承担一切版权纠纷责任。</dd> </li>
      </ul>
      <input type="submit" value="发布作品" class="wind_subm1" />
    </div>
    <div style="clear:both;margin-bottom:20px;"></div>
  </div>
</div>

<div class="clear:both;"></div>
                                                                                                                                                                                                                                                                                                